
import pandas as pd
trade_num_df = pd.DataFrame()
data = pd.read_csv("E:\\QMT\\daily_monitor_summary\\130_high_premium_high_hand_over_results.csv")
data["date"] = data["date"].astype(str)
trade_num_df["trade_num_1"] = data["trade_num"]
data.set_index("date", inplace=True)
data.drop("trade_num", axis=1, inplace=True)
ax = data.plot(figsize=(10,5), title="pandas_plot_test", grid=True)
fig = ax.get_figure()
fig.savefig("D:\\learn_and_test_data\\fig.png")

ax = trade_num_df.plot(figsize=(10,5), title="pandas_plot_test", grid=True)
fig = ax.get_figure()
fig.savefig("D:\\learn_and_test_data\\fig_trade_num.png")
